#include <iostream>
using namespace std;
int main()
{
	int x,n,i;
	cin>>n;
	for(i=0;i<n;i++)
		cin>>x;
	cin>>x;
	if(x>n||x<=0)
		cout<<"error";
	else
		cout<<"ok";
	return 0;
}